import glob
import sys
import os
import unittest

sys.path.insert(0, 'test')

tests = glob.glob( 'test_*.py' )

suite = unittest.TestSuite()
for t in tests:
    mod = __import__( os.path.splitext(os.path.basename(t))[0] )
    suite = unittest.TestSuite( ( suite, unittest.defaultTestLoader.loadTestsFromModule(mod) ) )

unittest.TextTestRunner(verbosity=2).run(suite)
